package com.meihua.mes2ehr.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class FsMesMessageResult {

    @JsonProperty("code")
    private Integer code;
    @JsonProperty("data")
    private DataDTO data;
    @JsonProperty("msg")
    private String msg;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("revision")
        private Integer revision;
        @JsonProperty("spreadsheetToken")
        private String spreadsheetToken;
        @JsonProperty("valueRange")
        private ValueRangeDTO valueRange;

        @NoArgsConstructor
        @Data
        public static class ValueRangeDTO {
            @JsonProperty("majorDimension")
            private String majorDimension;
            @JsonProperty("range")
            private String range;
            @JsonProperty("revision")
            private Integer revision;
            @JsonProperty("values")
            private List<List<String>> values;
        }
    }
}
